package cn.appsys.pojo;

public class Paging {
	private int pagesize=0;
	private int pages=0;
	private int limit;
	
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getPages() {
		return pages;
	}
	public void setPages(int pages) {
		this.limit=(pages-1)*pagesize;
		this.pages = pages;
	}
}
